package com.health.service;

import com.health.dao.HealthComboDao;
import com.health.dao.UsersExamineDao;
import com.health.pojo.ComboForm;

import java.util.ArrayList;

public class DeleteOrderService {
    public static final int selectComboByUserId = 1;
    public static final int deleteUsers_Examine = 2;
    ArrayList<ComboForm> comboForms;


    public void dispath(int servicetype, int Uid, int Eid, String time, ArrayList<ComboForm> comboForms) {


        switch (servicetype) {

            case deleteUsers_Examine: {
                deleteUsers_Examine(Uid, Eid, time);
                break;
            }

        }
        this.selectComboByUserId(Uid, comboForms);
    }

    public void selectComboByUserId(int UID, ArrayList<ComboForm> comboForms) {
        this.comboForms = comboForms;
        HealthComboDao healthComboDao = new HealthComboDao();
        healthComboDao.selectComboByUserId(UID, comboForms);
    }

    public int deleteUsers_Examine(int Uid, int Eid, String time) {
        UsersExamineDao usersExamineDao = new UsersExamineDao();
        return usersExamineDao.deleteUsers_Examine(Uid, Eid, time);
    }
}
